﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ConfigurationContext
{
    /// <summary>
    /// 用户相关工艺段
    /// </summary>
    public class UserRelatedProcessSegment : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected UserRelatedProcessSegment() { }
        #endregion

        #region 01.创建用户相关工艺段构造器
        /// <summary>
        /// 创建用户相关工艺段构造器
        /// </summary>
        /// <param name="processId">工艺Id</param>
        /// <param name="processSegmentId">工艺段Id</param>
        public UserRelatedProcessSegment(Guid processId, Guid processSegmentId)
            : this()
        {
            this.ProcessId = processId;
            this.ProcessSegmentId = processSegmentId;
        }
        #endregion

        #endregion

        #region # 属性

        #region 工艺Id —— Guid ProcessId
        /// <summary>
        /// 工艺Id
        /// </summary>
        public Guid ProcessId { get; private set; }
        #endregion

        #region 工艺段Id —— Guid ProcessSegmentId
        /// <summary>
        /// 工艺段Id
        /// </summary>
        public Guid ProcessSegmentId { get; private set; }
        #endregion

        #region 导航属性 - 用户扩展 —— UserExtension UserExtension
        /// <summary>
        /// 导航属性 - 用户扩展
        /// </summary>
        public virtual UserExtension UserExtension { get; internal set; }
        #endregion

        #endregion
    }
}
